@import '../../common/css/common.css';

.core {
    align-items: center;
    height: 900px;
    width: 100%;
    /* 45度夹角，从红色渐变到绿色 */
    background: linear-gradient(45deg, rgb(255, 255, 255), rgb(255, 125, 200));
}

.search-box {
    height: 120px;
    width: 100%;
    justify-content: center;/* 水平居中 */
    align-items: center;/* 垂直居中 */
}

.search-box search {
    width: 95%;
    background-color: rgba(255, 255, 255, .85);
}

.core swiper {
    top: 10px;
    height: 250px;
}

.swiper-box {
    margin: 2.5%;
}

.swiper-box image {
    border-radius: 25px;/* 添加圆角边框 */
}

.categories {
    height: 520px;
    width: 100%;
}

.categories .popular {
    height: 340px;
    width: 100%;
    margin: 5%;
    display: flex;
    flex-wrap: wrap;
}

.categories .popular .item {
    width: 20%;
    text-align: center;
    margin: 18px  0px;
}

.categories .popular .item image {
    height: 110px;
    width: 110px;
    border-radius: 25px;/* 添加圆角边框 */
}

.categories .popular .item text {
    top: 5px;
    font-size: 28px;
}

.categories .more {
    height: 160px;
    flex-direction: row;
    align-items: center;
    margin: 0px 8%;

}

.categories .more .item {
    height: 110px;
    width: 110px;
    text-align: center;
    align-items: center;
}

.categories .more .item image {
    height: 80px;
    width: 80px;
    border-radius: 40px;/* 添加圆角边框 */
}

.categories .more .item text {
    top: 5px;
    font-size: 23px;
}

.card {
    height: 550px;
    width: 100%;
    display: flex;
    align-items: center;
}

.card .flash-sale {
    background-color: white;
    width: 90%;
    height: 260px;
    margin: 3% 0;
    border-radius: 30px;/* 添加圆角边框 */
}

.card .flash-sale .title {
    height: 80px;
    width: 100%;
    border-radius: 30px;/* 添加圆角边框 */
    background: linear-gradient(rgb(255, 220, 220), rgb(255, 255, 255));
    align-items: center;
}

.card .flash-sale .title>text {
    text-align: center;
    height: 60px;
    width: 180px;
    font-style: italic;
    font-size: 32px;
    font-weight: bold;
}

.card .flash-sale .title .time {
    height: 45px;
    border-radius: 30px 30px 30px 0px;/* 添加圆角边框 */
    border-width: 1px;
    border-color: rgb(255, 205, 220)
}

.card .flash-sale .title .time .hour {
    height: 100%;
    width: 120px;
    border-radius: 30px;/* 添加圆角边框 */
    background: linear-gradient(rgb(255, 75, 50), rgb(255, 120, 70));
    color: white;
    padding-left: 8px;
}

.card .flash-sale .title .time .hour>text {
    text-align: center;
    font-size: 36px;
}

.card .flash-sale .title .time .countdown {
    color: rgb(240, 86, 64);
    width: 150px;
    margin-left: 15px;
}

.card .flash-sale .title .more {
    left: 60px;
    width: 80px;
}

.card .flash-sale .title .more>text {
    font-size: 25px;
}

.card .flash-sale .title .more>image {
    top: 8px;
    width: 15px;
    height: 15px;
}

.card .flash-sale .goods {
    height: 200px;
    display: flex;
}

.card .flash-sale .goods .goods-item {
    width: 25%;
    height: 98%;
    align-items: center;
    text-align: center;
    margin: 1% 2%;
}

.card .flash-sale .goods .goods-item .new {
    color: red;
    font-size: 36px;
}

.card .flash-sale .goods .goods-item .old {
    color: grey;
    font-size: 22px;
    text-decoration: line-through
}

.card .flash-sale .goods .goods-item image {
    width: 120px;
    height: 120px;
}

.card .other {
    width: 90%;
    height: 220px;
    display: flex;
}

.card .other .subsidy {
    background-color: white;
    width: 50%;
    height: 100%;
    border-radius: 30px 0;/* 添加圆角边框 */
}

.card .other .subsidy .title {
    height: 60px;
    border-radius: 30px 0;/* 添加圆角边框 */
}

.card .other .subsidy .title>text {
    text-align: center;
    height: 60px;
    width: 160px;
    font-style: italic;
    font-size: 32px;
    font-weight: bold;
}

.card .other .subsidy .title>div {
    top: 8px;
    width: 140px;
    height: 45px;
    background-color: orange;
    font-size: 24px;
    align-items: center;
    border-radius: 30px 30px 30px 0px;/* 添加圆角边框 */
}

.card .other .subsidy .title>div>text {
    left: 10px;
    color: white;
}

.card .other .subsidy .goods {
    height: 150px;
    width: 100%;

}

.card .other .subsidy .goods .goods-item {
    width: 50%;
    height: 100%;
    align-items: center;
    text-align: center;
}

.card .other .subsidy .goods .goods-item>image{
    width: 110px;
    height: 110px;
}
.card .other .subsidy .goods .goods-item>text{
    color: red;
}

.card .other .special {
    background-color: white;
    width: 50%;
    height: 100%;
    border-radius: 0 30px;/* 添加圆角边框 */
    border-left-style: solid;
    border-left-color: rgb(235, 235, 235);
    border-left-width: 3px;
}

.card .other .special .title {
    height: 60px;
    border-radius: 30px 0;/* 添加圆角边框 */
}

.card .other .special .title>text {
    text-align: center;
    height: 60px;
    width: 160px;
    font-style: italic;
    font-size: 32px;
    font-weight: bold;
}

.card .other .special .title>div {
    top: 8px;
    width: 120px;
    height: 45px;
    background-color: rgb(45, 180, 15);
    font-size: 24px;
    align-items: center;
    border-radius: 30px 30px 30px 0px;/* 添加圆角边框 */
}

.card .other .special .title>div>text {
    left: 10px;
    color: white;
}

.card .other .special .goods {
    height: 150px;
    width: 100%;

}

.card .other .special .goods .goods-item {
    width: 50%;
    height: 100%;
    align-items: center;
    text-align: center;
}

.card .other .special .goods .goods-item>image{
    width: 110px;
    height: 110px;
}
.card .other .special .goods .goods-item>text{
    color: red;
}

